<template>
  <div>
    <div>儿子的玩具：{{ toy }}</div>
    <div><button @click="emit('sendToy', toy)">赠送玩具</button></div>
  </div>
</template>

<script lang="ts" setup>
import { ref } from 'vue'

let emit = defineEmits(['sendToy'])
let toy = ref('迪迦奥特曼')

</script>

<style lang="scss" scoped>

</style>